ul#quesList {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 2px 2px 8px 2px;
}

ul#quesList li {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 0.5em 0;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    max-width: 100%;
}

.item-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 60px;
}

.custom-checkbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20em;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox {
    display: none;
}

.fake-checkbox {
    width: 24px;
    height: 24px;
    border: 1px solid #888;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox:checked + .fake-checkbox::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #4CAF50;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-wrapper:hover .fake-checkbox {
    border-color: #4CAF50;
}

li:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

li.collapsed .ques-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.5em 0.5em 0.5em 0;
    width: 350%;
}

li.expanded .ques-content {
    white-space: pre-wrap;
    margin: 0.5em 0.5em 0.5em 0;
    width: 350%;
}

.paper-name {
    font-size: 0.8rem;
    color: rgba(102, 102, 102, 0.7);
}

.ques-type {
    font-size: 0.8rem;
    color: rgba(19, 96, 238, 0.81);
    margin-right: 5px;
}

.ques-text {
    display: block;
}

.pagination button {
    margin-left: 0.25em;
    cursor: pointer;
}

.pagination button:nth-last-child(2) {
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
}

.pagination button:last-child {
    font-weight: bold;
    background-color: rgba(219, 63, 63, 0.82);
    color: white;
    border-radius: 4px;
}

/* 让按钮相对定位，徽标可定位于其内部 */
.viewSelectedBtn {
    position: relative;
}

.selectedCountBadge {
    border: 1px solid #000000;
    font-weight: bold;
    background-color: #0f520bbd;
    color: white;
    border-radius: 4px;
    position: absolute;
    top: -23px;
    right: -2px;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    padding: -1px 6px;
    line-height: 23px;
    text-align: center;
    display: none;
    transition: all 0.2s ease;
}

.filter-bar{
    padding: 0.5em 0.25em 0 0.25em;
}

label > select {
    vertical-align: middle;
}
select {
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
}

.random-select-bar {
    padding: 0.5em 0.25em 0 0.25em;
}

.history-link {
    color: #0056b3;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}

.history-link:hover {
    text-decoration: underline;
}